const Joi = require('joi')
// 对账号进行验证
const account = Joi.string().min(11).max(18).required()
const appid = Joi.number().min(1).max(18).required()
// 密码进行验证 pattern()放入正则表达式这里不需要那么复杂 alphanum为A-Z a-z 0-9 required为必填项
const password = Joi.string().min(6).max(15).required()
// 1. 导入 @escook/express-joi
const expressJoi = require('@escook/express-joi')

exports.login_limit = {
    body: {
        password,
        account,
        appid
    }
}